{* product brief view (from a category or search) *}
{* assign var="Extra" value="_16_" *}
{if $product_info ne NULL}
{if $product_info.slug}
{assign var=_product_url value="?ukey=product&productID=`$product_info.productID`&product_slug=`$product_info.slug`"|set_query_html}
{else}
{assign var=_product_url value="?ukey=product&productID=`$product_info.productID`"|set_query_html}
{/if}
<!-- start product_brief.html -->
	<td class="td_left">
		<form class="product_brief_block" action='{"?ukey=cart`$_form_action_url`"|set_query_html}' method="post" rel="{$product_info.productID}" {if $widget}target="_blank"{/if}>
			<input name="action" value="add_product" type="hidden">
			<input name="productID" value="{$product_info.productID}" type="hidden">
			<input class="product_price" value="{$product_info.PriceWithOutUnit|escape:'html'}" type="hidden">
		</form>
	</td>

	{assign var=_cnt value=''}
<!-- Вывод товара списком -->	
	<td>{if $product_info.product_code}{$product_info.product_code}{else}&nbsp;{/if}</td>
	<td><a {$target} href="{$_product_url}">{$product_info.name|escape:'html'}</a></td>
<!-- 
Вывод товара списком
-->
		{if $product_info.product_extra}
		{foreach from=$ExtraArray item=ExtraItem name=ExtraItem}
			{foreach from=$product_info.product_extra item=product_extra name=product_extra}
			{if $ExtraItem eq $product_extra.optionID}
				<td id="{$product_info.productID}-{$product_extra.optionID}">{$product_extra.option_value}</td>
			{/if}
			{/foreach}
		{/foreach}
		{/if}
		<td>{$product_info.PriceOptWithUnit}</td>
		<td class="td_right">{$product_info.PriceWithUnit}</td>	

	{* if $product_info.product_extra}
	<div class="prdbrief_options">
		<table>
		{counter name='select_counter' start=0 skip=1 print=false assign='select_counter_var'}
		{section name=i loop=$product_info.product_extra}
		{if $product_info.product_extra[i].option_type != 0}
		{section name=k loop=$product_info.product_extra[i].option_show_times}
		<tr>					
			<td>
				{$product_info.product_extra[i].name|escape:'html'}{if $product_info.product_extra[i].option_show_times > 1} ({$smarty.section.k.index+1}):{else}:{/if}
			</td>
			<td>
				{counter name=select_counter assign=_cnt}
				<select name='option_{$_cnt}' class="product_option">
				<option value='' rel="0">{"str_not_defined"|transcape}</option>
				{section name=j loop=$product_info.product_extra[i].values_to_select}
				<option value='{$product_info.product_extra[i].values_to_select[j].variantID}' rel='{$product_info.product_extra[i].values_to_select[j].price_surplus}'
				{if $product_info.product_extra[i].values_to_select[j].variantID == $product_info.product_extra[i].variantID}selected="selected"{/if}>
					{$product_info.product_extra[i].values_to_select[j].option_value}
				</option>
				{/section}
				</select>
			</td>
		</tr>
		{/section}
		{/if}
		{/section}
		</table>
	</div>
	{/if *}

	{* if $currencies_count ne 0 && $product_info.Price > 0}
	<div class="prdbrief_price">
		<span class="totalPrice">{$product_info.PriceWithUnit}</span>
	</div>
	{/if *}

{* if $product_info.ordering_available && $product_info.Price>0 && ( $smarty.const.CONF_SHOW_ADD2CART eq 1 ) && ( $smarty.const.CONF_CHECKSTOCK==0 || $product_info.in_stock > 0 ) }
	<div class="prdbrief_add2cart">
		<input  {if ($PAGE_VIEW eq 'facebook')||($PAGE_VIEW eq 'vkontakte')}type="submit" value="{"str_add_to_cart_string"|transcape}" {else}type="image" src="{$button_add2cart_small}" alt="{'str_add_to_cart_string'|translate}"{/if} title="{"str_add_to_cart_string"|translate}"
		{if $smarty.const.CONF_SHOPPING_CART_VIEW ne $smarty.const.SHCART_VIEW_PAGE && !$widget} class="add2cart_handler" rel="{if $widget}widget{/if}" {/if}>
	</div>
{elseif $smarty.const.CONF_SHOW_ADD2CART eq 1 && $smarty.const.CONF_CHECKSTOCK && !$product_info.in_stock && $product_info.ordering_available}
	<div class="prd_out_of_stock">{lbl_prd_out_of_stock}</div>
{/if *}	

<!-- end product_brief.html -->
{/if}